package com.mysy.hospital.service.impl;

import com.mysy.hospital.mapper.UserMapper;
import com.mysy.hospital.pojo.User;
import com.mysy.hospital.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 用户业务层
 * @author JasonYu
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User login(User loginUser) {
        return userMapper.getUserByUnamePwd(loginUser);
    }
}
